//
//  ShowAllCell.m
//  WWAVPlayer
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 LZY. All rights reserved.
//

#import "ShowAllCell.h"

@implementation ShowAllCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myView8 = [[UIView alloc]init];
//        _myView8.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:_myView8];
         
               self.myimageView8 = [[UIImageView alloc]init];
        self.myimageView8.backgroundColor = [UIColor brownColor];
        [self.myView8 addSubview:_myimageView8];
     
        self.myLabel1 = [[UILabel alloc]init];
        self.myLabel1.textColor = [UIColor colorWithRed:0.3694 green:0.3694 blue:0.3694 alpha:1.0];
//        self.myLabel1.backgroundColor = [UIColor greenColor];
        [self.myLabel1 setFont:[UIFont fontWithName:@"Verdana-Bold" size:14*W]];
        self.myLabel1.numberOfLines = 2;
        
        [self.contentView addSubview:self.myLabel1];
        
        self.myLabel2 = [[UILabel alloc]init];
        self.myLabel2.textColor = [UIColor grayColor];
             // self.myLabel2.backgroundColor = [UIColor greenColor];
        [self.myLabel2 setFont:[UIFont fontWithName:@"Verdana" size:12*W]];
        self.myLabel2.numberOfLines = 1;
        
        [self.contentView addSubview:self.myLabel2];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    _myView8.frame = CGRectMake(10*W, 0, self.contentView.bounds.size.width-20*W, self.contentView.bounds.size.height);
    _myimageView8.frame = CGRectMake(5*W, 5*H, 150*W, self.myView8.bounds.size.height-10*H);
    _myLabel1.frame = CGRectMake(170*W, 15*H ,190*W, 50*H);
    _myLabel2.frame = CGRectMake(170*W, 70*H ,190*W, 30*H);
}





@end
